-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add HTML output for stac-api #17
base: main
Are you sure you want to change the base?
Conversation
… into feature/add-stac-HTML-output
f5673d9
to
cc76952
Compare
200: { | ||
"content": { | ||
MimeTypes.json.value: {}, | ||
MimeTypes.html.value: {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a shame but we almost need a custom StacApi class just to add the response content 🤷♂️
model_name="ItemUri", | ||
base_model=ItemUri, | ||
extensions=[HTMLorGeoOutputExtension()], | ||
request_type="GET", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: in subsequent PR we will add more output type support (e.g GeoParquet)
self.client.get_queryables, HTMLorSchemaGetRequest | ||
), | ||
) | ||
app.include_router(self.router, tags=["Filter Extension"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need custom Filter extension client because we need to configure output models
This PR add HTML output to all STAC API endpoints (~same HTML output as tipg endpoints)